package cn.jobstart.modelDesc;

import lombok.Data;
import cn.jobstart.model.SysOperLog;


import cn.jobstart.enums.SysOperLogBusinessTypeEnum;
import cn.jobstart.enums.SysOperLogOperatorTypeEnum;
import cn.jobstart.enums.SysOperLogShowFlagEnum;
import cn.jobstart.enums.SysOperLogDelFlagEnum;

/**
*    @author sunke
*    @Date 2023-09-22 22:03:55
*    @description SysOperLogDesc      操作日志记录
*/
@Data
public class SysOperLogDesc extends SysOperLog {


    private String businessTypeDesc;
    private String operatorTypeDesc;
    private String showFlagDesc;
    private String delFlagDesc;

    public String getBusinessTypeDesc() {
        businessTypeDesc=SysOperLogBusinessTypeEnum.getDescByType(getBusinessType());
        return businessTypeDesc;
    }
    public String getOperatorTypeDesc() {
        operatorTypeDesc=SysOperLogOperatorTypeEnum.getDescByType(getOperatorType());
        return operatorTypeDesc;
    }
    public String getShowFlagDesc() {
        showFlagDesc=SysOperLogShowFlagEnum.getDescByType(getShowFlag());
        return showFlagDesc;
    }
    public String getDelFlagDesc() {
        delFlagDesc=SysOperLogDelFlagEnum.getDescByType(getDelFlag());
        return delFlagDesc;
    }
}

